﻿namespace CSharpPro._0922._2;

public class Demo
{
    static void Main(string[] args)
    {
        double originalPrice = 8800;
        double discount = 0;

        Console.WriteLine("请输入出行月份（1 - 12）：");
        int month = int.Parse(Console.ReadLine());

        Console.WriteLine("请选择出行交通方式（1 - 航班，2 - 动车）：");
        int transport = int.Parse(Console.ReadLine());
        
        if (month >= 5 && month <= 10)
        {
            if (transport == 1)
            {
                discount = 0.9;
            }
            else if (transport == 2)
            {
                discount = 0.75;
            }
        }
        else
        {
            if (transport == 1)
            {
                discount = 0.6;
            }
            else if (transport == 2)
            {
                discount = 0.3;
            }
        }
        double finalPrice = originalPrice * discount;

        Console.WriteLine($"此旅游行程的价格为：{finalPrice} 元");
    }
}